package com.ruoyi.server.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备业务对象 iot_device
 *
 * @author shanzhuo
 * @date 2023-11-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class IotDeviceBo extends BaseEntity {

    /**
     * id
     */
//    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 设备id
     */
//    @NotBlank(message = "设备id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceId;

    /**
     * 密码
     */
//    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String passwd;

    /**
     * 设备类型
     */
//    @NotNull(message = "设备类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deviceType;

    /**
     * 设备名称
     */
//    @NotBlank(message = "设备名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceName;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态
     */
//    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * ip
     */
//    @NotBlank(message = "ip不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceIp;

    /**
     * 设备地址
     */
//    @NotBlank(message = "设备地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceAddr;


}
